Skip to content

refactor: drop the g key for drafting, Tab does it everywhere - #2

Merged
owlnai merged 1 commit into
mainfrom
refactor/tab-only-drafting
Nov 11, 2026
Merged

owlnai merged 1 commit into
mainfrom
refactor/tab-only-drafting

Conversation

@owlnai

@owlnai owlnai commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Written by an AI agent on behalf of @owlnai. @owlnai has reviewed it.

This is the first layer of three. Drafting a commit message with Claude had two keys: g in the file list and diff view, and Tab while writing. Having both meant two things to learn, and g took a letter away from the list.

What changed

  • g no longer drafts, in either the file list or the diff view. Tab drafts from the file list (it opens the commit box) and from inside the commit box.
  • I updated the hints, the ? help, the module doc comment and the README to match.

Evidence

From the diff, the key bindings before:

KeyCode::Char('g') | KeyCode::Tab => self.draft(),   // file list
KeyCode::Char('g') => self.draft(),                  // diff view

After:

KeyCode::Tab => self.draft(),                        // file list; diff view has no draft key

File list footer after this change, from rex capture in a 47-column Rex pane:

 spc stage · ⏎ diff · c commit · Tab draft

Tab from the file list opened the box and drafted a message with Claude in a scratch repo. The branch builds with no new warnings.

ELI5

There used to be two buttons that did the same thing. Now there's one.

@owlnai
owlnai added this pull request to stack #4 November 11, 2026 04:48
@owlnai
owlnai merged commit ad3a70a into main Nov 11, 2026
8 checks passed
@owlnai owlnai mentioned this pull request Nov 11, 2026
@owlnai
owlnai deleted the refactor/tab-only-drafting branch November 11, 2026 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant